
const HISTORY_KEY = 'geek-h5-history'
// 保存频道列表数据
export function getHistory ():string[] {
  return JSON.parse(localStorage.getItem(HISTORY_KEY) || '[]')
}

// 保存搜索历史记录
export function setHistory (historys:string[]) {
  localStorage.setItem(HISTORY_KEY, JSON.stringify(historys))
}

export function removeHistory () :void {
  localStorage.removeItem(HISTORY_KEY)
}
